package com.hsjk.szwj.framework.common.constant;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/21 22:08
 **/
public class CommonConstant {
    /**
     * yes or no
     **/
    public static final Integer NO = 0;
    public static final Integer YES = 1;

    /**
     * 回调URL的格前缀
     */
    public static final String PAY_RETURNURL_FIX_ONLY_JUMP_PREFIX = "ONLYJUMP_";

    /**
     * 通用 可用 / 禁用
     **/
    public static final int PUB_USABLE = 1;
    public static final int PUB_DISABLE = 0;


    /**
     * 订单状态
     **/
    //待支付
    public static final int ORDER_STATUS_WAIT = 1;
    //已支付
    public static final int ORDER_STATUS_PAYED = 2;
    //已取消
    public static final int ORDER_STATUS_CANCEL = 3;


    /**
     * sku 绑定的类型
     **/
    //课程
    public static final Integer PRODUCT_SKU_BIND_TYPE_COURSE = 1;
    //服务
    public static final Integer PRODUCT_SKU_BIND_TYPE_SERVICE = 2;
    //报名班型
    public static final Integer PRODUCT_SKU_BIND_TYPE_CLASS = 3;


    /**
     * 结算单类型
     **/
    //签单人
    public static final String CHECKOUT_TYPE_SALE = "SALE";
    //邀请人
    public static final String CHECKOUT_TYPE_INVITE = "INVITE";
    //代理
    public static final String CHECKOUT_TYPE_AGENCY = "AGENCY";
    // 固定分润
    public static final String CHECKOUT_TYPE_FIXED = "FIXED";

    /**
     * 分账通道
     **/
    //转账
    public static final String CHECKOUT_PATH_TRANSFER = "TRANSFER";

    //分账
    public static final String CHECKOUT_PATH_DIVIDE = "DIVIDE";


    /**
     * 入账方式
     **/
    public static final String ENTRY_WX_CASH = "WX_CASH";
    public static final String ENTRY_ALIPAY_CASH = "ALIPAY_CASH";
    public static final String ENTRY_BANK_CARD = "BANK_CARD";


    /**
     * 结算状态
     **/
    //未结算
    public static final Integer SETTLEMENT_STATUS_UNSETTLED = 1;
    //已结算
    public static final Integer SETTLEMENT_STATUS_SETTLED = 2;

    // 支付宝官方支付
    public static String ALIPAY = "alipay";
    // 微信官方支付
    public static String WXPAY = "wxpay";
    // 云闪付开放平台
    public static String YSFPAY = "ysfpay";


    //分账模型，1：金额，2：百分比
    public static Integer DIVISION_MODEL_AMOUNT = 1;
    public static Integer DIVISION_MODEL_PERCENTAGE = 2;
}
